package app.softtech.freechat.database;

import android.content.ContentValues;

public class MemberInGroup {
	
	private int mId;
	private int mGroupId;
	private int mUserIdInServer;
	private int mIsInFriendList;
	private String mUserNameInSerVer;
	
	
	/**
	 * Constructor this class 
	 * @param mGroupId
	 * @param mUserIdInServer
	 * @param mIsInFriendList
	 * @param mUserNameInSerVer
	 */
	public MemberInGroup(int mGroupId, int mUserIdInServer,
			int mIsInFriendList, String mUserNameInSerVer) {
		super();
		this.mGroupId = mGroupId;
		this.mUserIdInServer = mUserIdInServer;
		this.mIsInFriendList = mIsInFriendList;
		this.mUserNameInSerVer = mUserNameInSerVer;
	}
	
	// Constructor all field
	public MemberInGroup(int mId, int mGroupId, int mUserIdInServer,
			int mIsInFriendList, String mUserNameInSerVer) {
		super();
		this.mId = mId;
		this.mGroupId = mGroupId;
		this.mUserIdInServer = mUserIdInServer;
		this.mIsInFriendList = mIsInFriendList;
		this.mUserNameInSerVer = mUserNameInSerVer;
	}
	public MemberInGroup() {
		super();
		// TODO Auto-generated constructor stub
	}

	public int getId() {
		return mId;
	}
	public void setId(int mId) {
		this.mId = mId;
	}
	public int getGroupId() {
		return mGroupId;
	}
	public void setGroupId(int mGroupId) {
		this.mGroupId = mGroupId;
	}
	public int getUserIdInServer() {
		return mUserIdInServer;
	}
	public void setUserIdInServer(int mUserIdInServer) {
		this.mUserIdInServer = mUserIdInServer;
	}
	public int getIsInFriendList() {
		return mIsInFriendList;
	}
	public void setIsInFriendList(int mIsInFriendList) {
		this.mIsInFriendList = mIsInFriendList;
	}
	public String getUserNameInSerVer() {
		return mUserNameInSerVer;
	}
	public void setUserNameInSerVer(String mUserNameInSerVer) {
		this.mUserNameInSerVer = mUserNameInSerVer;
	}
	/**
	 * Get All Values of MemberInGroup - except Id
	 * @return
	 */
	public ContentValues getValuesMember(){
		ContentValues values = new ContentValues();

		values.put(ConstantsDB.GROUP_ID, this.getGroupId());
		values.put(ConstantsDB.USER_ID_IN_SERVER, this.getUserIdInServer());
		values.put(ConstantsDB.IS_IN_FRIEND_LIST, this.getIsInFriendList());
		values.put(ConstantsDB.USER_NAME_IN_SERVER, this.getUserNameInSerVer());
		
		return values;
	}
	
}
